<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div{
        width: 800px;
        height: 800px;
        background:linear-gradient( to right,red,yellow);
        margin: 0 auto;
    }
</style>
<body>
    <div>

    </div>
</body>
</html>